var util = require('../../utils/util.js')
var d = require('date.js')
var CN_Date = require('getCNDate.js');
var app = getApp()
var t = new Date();

Page({
  data: {
    MONTH_EN: ['JAN ', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC'],
    monthNum: t.getMonth() + 1,
    yearNum: t.getFullYear(),
    MonthDayArray: [],
    toDate: t.getDate(),
    toMonth: t.getMonth() + 1,
    toYear: t.getFullYear(),
    fromToday: '今天',
    nongliDetail: CN_Date(t.getFullYear(), t.getMonth() + 1, t.getDate()),
    foliDetail: (t.getFullYear() + 544) + '年' + (t.getMonth() + 1) + '月' + (t.getDate()) + '日',
    zangli: {
      1: {
        1: { month:'《藏历火鸡年》十一月庄严月', day: '十四', day_des: '元旦' },
        2: { month: '《藏历火鸡年》十一月庄严月', day: '十六', day_des: '飞幡日（不适宜挂经幡）。' },
        3: { month: '《藏历火鸡年》十一月庄严月', day: '十七', day_des: '阿弥陀佛圣诞（汉传，农历十一月十七）。' },
        4: { month: '《藏历火鸡年》十一月庄严月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。遍知龙钦巴尊者圆寂日。' },
        5: { month: '《藏历火鸡年》十一月庄严月', day: '十九', day_des: '日光菩萨圣诞（汉传，农历十一月十九）。小寒' },
        6: { month: '《藏历火鸡年》十一月庄严月', day: '廿十', day_des: '' },
        7: { month: '《藏历火鸡年》十一月庄严月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        8: { month: '《藏历火鸡年》十一月庄严月', day: '廿二', day_des: '' },
        9: { month: '《藏历火鸡年》十一月庄严月', day: '廿三', day_des: '' },
        10: { month: '《藏历火鸡年》十一月庄严月', day: '廿四', day_des: '' },
        11: { month: '《藏历火鸡年》十一月庄严月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。藏历十一月廿五日为金刚瑜珈母的特别修行日。' },
        12: { month: '《藏历火鸡年》十一月庄严月', day: '廿六', day_des: '' },
        13: { month: '《藏历火鸡年》十一月庄严月', day: '廿七', day_des: '' },
        14: { month: '《藏历火鸡年》十一月庄严月', day: '廿八', day_des: '' },
        15: { month: '《藏历火鸡年》十一月庄严月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        16: { month: '《藏历火鸡年》十一月庄严月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。' },
        17: { month: '《藏历火鸡年》十二月满意月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。飞幡日（不适宜挂经幡）。' },
        18: { month: '《藏历火鸡年》十二月满意月', day: '初二', day_des: '' },
        19: { month: '《藏历火鸡年》十二月满意月', day: '初三', day_des: '' },
        20: { month: '《藏历火鸡年》十二月满意月', day: '初三(闰日)', day_des: '大寒' },
        21: { month: '《藏历火鸡年》十二月满意月', day: '初四', day_des: '' },
        22: { month: '《藏历火鸡年》十二月满意月', day: '初五', day_des: '' },
        23: { month: '《藏历火鸡年》十二月满意月', day: '初六', day_des: '' },
        24: { month: '《藏历火鸡年》十二月满意月', day: '初七', day_des: '释迦牟尼佛成道日（汉传，农历十二月初八）。' },
        25: { month: '《藏历火鸡年》十二月满意月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        26: { month: '《藏历火鸡年》十二月满意月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        27: { month: '《藏历火鸡年》十二月满意月', day: '十一', day_des: '' },
        28: { month: '《藏历火鸡年》十二月满意月', day: '十二', day_des: '' },
        29: { month: '《藏历火鸡年》十二月满意月', day: '十三', day_des: '飞幡日（不适宜挂经幡）。' },
        30: { month: '《藏历火鸡年》十二月满意月', day: '十四', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        31: { month: '《藏历火鸡年》十二月满意月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。月全食（约18:51 - 00:08次日）。' },
      },
      2: {
        1: { month: '《藏历火鸡年》十二月满意月', day: '十六', day_des: '' },
        2: { month: '《藏历火鸡年》十二月满意月', day: '十七', day_des: '' },
        3: { month: '《藏历火鸡年》十二月满意月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。遍知龙钦巴尊者纪念日。' },
        4: { month: '《藏历火鸡年》十二月满意月', day: '十九', day_des: '立春' },
        5: { month: '《藏历火鸡年》十二月满意月', day: '廿十', day_des: '' },
        6: { month: '《藏历火鸡年》十二月满意月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        7: { month: '《藏历火鸡年》十二月满意月', day: '廿二', day_des: '' },
        8: { month: '《藏历火鸡年》十二月满意月', day: '廿三', day_des: '监斋菩萨圣诞（汉传，农历十二月廿三）。' },
        9: { month: '《藏历火鸡年》十二月满意月', day: '廿四', day_des: '' },
        10: { month: '《藏历火鸡年》十二月满意月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        11: { month: '《藏历火鸡年》十二月满意月', day: '廿六', day_des: '' },
        12: { month: '《藏历火鸡年》十二月满意月', day: '廿七', day_des: '' },
        13: { month: '《藏历火鸡年》十二月满意月', day: '廿八', day_des: '' },
        14: { month: '《藏历火鸡年》十二月满意月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。华严菩萨圣诞（汉传，农历十二月廿九）。' },
        15: { month: '《藏历火鸡年》十二月满意月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。藏历年除夕日，岁末除障法会，辞旧迎新。' },
        16: { month: '《藏历土狗年》正月神变月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。神变月开端，这天开始整月每天功德增上无量倍。弥勒菩萨圣诞（汉传，农历正月初一）。汉历春节大年初一。日偏食（约02:55 - 06:47）。' },
        17: { month: '《藏历土狗年》正月神变月', day: '初二', day_des: '' },
        18: { month: '《藏历土狗年》正月神变月', day: '初三', day_des: '第一世噶玛巴 杜松虔巴 圆寂纪念日（1193）。' },
        19: { month: '《藏历土狗年》正月神变月', day: '初四', day_des: '雨水' },
        20: { month: '《藏历土狗年》正月神变月', day: '初五', day_des: '' },
        21: { month: '《藏历土狗年》正月神变月', day: '初六', day_des: '定光佛圣诞（汉传，农历正月初六）。' },
        22: { month: '《藏历土狗年》正月神变月', day: '初七', day_des: '' },
        23: { month: '《藏历土狗年》正月神变月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        24: { month: '《藏历土狗年》正月神变月', day: '初九', day_des: '' },
        25: { month: '《藏历土狗年》正月神变月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。飞幡日（不适宜挂经幡）。' },
        26: { month: '《藏历土狗年》正月神变月', day: '十一', day_des: '' },
        27: { month: '《藏历土狗年》正月神变月', day: '十二', day_des: '' },
        28: { month: '《藏历土狗年》正月神变月', day: '十三', day_des: '' }
      },
      3: {
        1: { month: '《藏历土狗年》正月神变月', day: '十四', day_des: '密勒日巴尊者圆寂日。' },
        2: { month: '《藏历土狗年》正月神变月', day: '十六', day_des: '' },
        3: { month: '《藏历土狗年》正月神变月', day: '十七', day_des: '' },
        4: { month: '《藏历土狗年》正月神变月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        5: { month: '《藏历土狗年》正月神变月', day: '十九', day_des: '惊蛰' },
        6: { month: '《藏历土狗年》正月神变月', day: '廿十', day_des: '' },
        7: { month: '《藏历土狗年》正月神变月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        8: { month: '《藏历土狗年》正月神变月', day: '廿二', day_des: '飞幡日（不适宜挂经幡）。' },
        9: { month: '《藏历土狗年》正月神变月', day: '廿三', day_des: '' },
        10: { month: '《藏历土狗年》正月神变月', day: '廿四', day_des: '' },
        11: { month: '《藏历土狗年》正月神变月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        12: { month: '《藏历土狗年》正月神变月', day: '廿五(闰日)', day_des: '' },
        13: { month: '《藏历土狗年》正月神变月', day: '廿六', day_des: '' },
        14: { month: '《藏历土狗年》正月神变月', day: '廿七', day_des: '' },
        15: { month: '《藏历土狗年》正月神变月', day: '廿八', day_des: '' },
        16: { month: '《藏历土狗年》正月神变月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        17: { month: '《藏历土狗年》正月神变月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。' },
        18: { month: '《藏历土狗年》二月苦行月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。' },
        19: { month: '《藏历土狗年》二月苦行月', day: '初二', day_des: '' },
        20: { month: '《藏历土狗年》二月苦行月', day: '初三', day_des: '' },
        21: { month: '《藏历土狗年》二月苦行月', day: '初四', day_des: '春分' },
        22: { month: '《藏历土狗年》二月苦行月', day: '初五', day_des: '' },
        23: { month: '《藏历土狗年》二月苦行月', day: '初六', day_des: '' },
        24: { month: '《藏历土狗年》二月苦行月', day: '初七', day_des: '飞幡日（不适宜挂经幡）。释迦牟尼佛出家日（汉传，农历二月初八）。' },
        25: { month: '《藏历土狗年》二月苦行月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。慧能大师圣诞（汉传，农历二月初九）。' },
        26: { month: '《藏历土狗年》二月苦行月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        27: { month: '《藏历土狗年》二月苦行月', day: '十一', day_des: '' },
        28: { month: '《藏历土狗年》二月苦行月', day: '十二', day_des: '' },
        29: { month: '《藏历土狗年》二月苦行月', day: '十三', day_des: '' },
        30: { month: '《藏历土狗年》二月苦行月', day: '十四', day_des: '' }, 
        31: { month: '《藏历土狗年》二月苦行月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。释迦牟尼佛涅槃（汉传，农历二月十五）。' },
      }, 
      4: {
        1: { month: '《藏历土狗年》二月苦行月', day: '十六', day_des: '' },
        2: { month: '《藏历土狗年》二月苦行月', day: '十七', day_des: '' },
        3: { month: '《藏历土狗年》二月苦行月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        4: { month: '《藏历土狗年》二月苦行月', day: '十九', day_des: '飞幡日（不适宜挂经幡）。观世音菩萨圣诞（汉传，农历二月十九）。' },
        5: { month: '《藏历土狗年》二月苦行月', day: '廿十', day_des: '清明' },
        6: { month: '《藏历土狗年》二月苦行月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。普贤菩萨圣诞（汉传，农历二月廿一）。' },
        7: { month: '《藏历土狗年》二月苦行月', day: '廿二', day_des: '' },
        8: { month: '《藏历土狗年》二月苦行月', day: '廿三', day_des: '监斋菩萨圣诞（汉传，农历十二月廿三）。' },
        9: { month: '《藏历土狗年》二月苦行月', day: '廿四', day_des: '立春' },
        10: { month: '《藏历土狗年》二月苦行月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        11: { month: '《藏历土狗年》二月苦行月', day: '廿六', day_des: '' },
        12: { month: '《藏历土狗年》二月苦行月', day: '廿七', day_des: '' },
        13: { month: '《藏历土狗年》二月苦行月', day: '廿八', day_des: '' },
        14: { month: '《藏历土狗年》二月苦行月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        15: { month: '《藏历土狗年》二月苦行月', day: '三十', day_des: ' 释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。'
        },
        16: { month: '《藏历土狗年》三月具香月', day: '初一', day_des: '时轮金刚新年。禅定胜王佛节日，作何善恶成百倍。' },
        17: { month: '《藏历土狗年》三月具香月', day: '初二', day_des: '' },
        18: { month: '《藏历土狗年》三月具香月', day: '初三', day_des: '佛陀宣讲时轮金刚续。' },
        19: { month: '《藏历土狗年》三月具香月', day: '初四', day_des: '飞幡日（不适宜挂经幡）。' },
        20: { month: '《藏历土狗年》三月具香月', day: '初五', day_des: '谷雨' },
        21: { month: '《藏历土狗年》三月具香月', day: '初六', day_des: '定光佛圣诞（汉传，农历正月初六）。' },
        22: { month: '《藏历土狗年》三月具香月', day: '初七', day_des: '' },
        23: { month: '《藏历土狗年》三月具香月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        24: { month: '《藏历土狗年》三月具香月', day: '初九', day_des: '' },
        25: { month: '《藏历土狗年》三月具香月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        26: { month: '《藏历土狗年》三月具香月', day: '十一', day_des: '' },
        27: { month: '《藏历土狗年》三月具香月', day: '十二', day_des: '' },
        28: { month: '《藏历土狗年》三月具香月', day: '十四', day_des: '' },
        29: { month: '《藏历土狗年》三月具香月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。' },
        30: { month: '《藏历土狗年》三月具香月', day: '十六', day_des: '飞幡日（不适宜挂经幡）。' },
      }, 
      5: {
        1: { month: '《藏历土狗年》三月具香月', day: '十七', day_des: '准提菩萨圣诞（汉传，农历三月十六）。' },
        2: { month: '《藏历土狗年》三月具香月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        3: { month: '《藏历土狗年》三月具香月', day: '十八(闰日)', day_des: '' },
        4: { month: '《藏历土狗年》三月具香月', day: '十九', day_des: '' },
        5: { month: '《藏历土狗年》三月具香月', day: '廿十', day_des: '立夏' },
        6: { month: '《藏历土狗年》三月具香月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        7: { month: '《藏历土狗年》三月具香月', day: '廿二', day_des: '' },
        8: { month: '《藏历土狗年》三月具香月', day: '廿三', day_des: '' },
        9: { month: '《藏历土狗年》三月具香月', day: '廿四', day_des: '' },
        10: { month: '《藏历土狗年》三月具香月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        11: { month: '《藏历土狗年》三月具香月', day: '廿六', day_des: '' },
        12: { month: '《藏历土狗年》三月具香月', day: '廿七', day_des: '' },
        13: { month: '《藏历土狗年》三月具香月', day: '廿八', day_des: '' },
        14: { month: '《藏历土狗年》三月具香月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        15: { month: '《藏历土狗年》三月具香月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。'},
        16: { month: '《藏历土狗年》四月萨嘎月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。飞幡日（不适宜挂经幡）。' },
        17: { month: '《藏历土狗年》四月萨嘎月', day: '初二', day_des: '' },
        18: { month: '《藏历土狗年》四月萨嘎月', day: '初三', day_des: '文殊菩萨圣诞（汉传，农历四月初四）。' },
        19: { month: '《藏历土狗年》四月萨嘎月', day: '初四', day_des: '' },
        20: { month: '《藏历土狗年》四月萨嘎月', day: '初五', day_des: '' },
        21: { month: '《藏历土狗年》四月萨嘎月', day: '初七', day_des: '佛诞辰日（藏传），四月七日佛降生。小满' },
        22: { month: '《藏历土狗年》四月萨嘎月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。释迦牟尼佛圣诞（汉传，农历四月初八）。' },
        23: { month: '《藏历土狗年》四月萨嘎月', day: '初九', day_des: '' },
        24: { month: '《藏历土狗年》四月萨嘎月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        25: { month: '《藏历土狗年》四月萨嘎月', day: '十一', day_des: '' },
        26: { month: '《藏历土狗年》四月萨嘎月', day: '十二', day_des: '' },
        27: { month: '《藏历土狗年》四月萨嘎月', day: '十三', day_des: '飞幡日（不适宜挂经幡）。' },
        28: { month: '《藏历土狗年》四月萨嘎月', day: '十四', day_des: '' },
        29: { month: '《藏历土狗年》四月萨嘎月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。佛陀成道暨涅盘纪念日，萨噶达瓦节。松吉泽仁仁波切生日。' },
        30: { month: '《藏历土狗年》四月萨嘎月', day: '十六', day_des: '' },
        31: { month: '《藏历土狗年》四月萨嘎月', day: '十七', day_des: '' },
      }, 
      6: {
        1: { month: '《藏历土狗年》四月萨嘎月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。第十一世巴吾（巴沃）仁波切生日。' },
        2: { month: '《藏历土狗年》四月萨嘎月', day: '十九', day_des: '' },
        3: { month: '《藏历土狗年》四月萨嘎月', day: '廿十', day_des: '' },
        4: { month: '《藏历土狗年》四月萨嘎月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        5: { month: '《藏历土狗年》四月萨嘎月', day: '廿二', day_des: '' },
        6: { month: '《藏历土狗年》四月萨嘎月', day: '廿三', day_des: '芒种' },
        7: { month: '《藏历土狗年》四月萨嘎月', day: '廿三(闰日)', day_des: '' },
        8: { month: '《藏历土狗年》四月萨嘎月', day: '廿四', day_des: '' },
        9: { month: '《藏历土狗年》四月萨嘎月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        10: { month: '《藏历土狗年》四月萨嘎月', day: '廿六', day_des: '' },
        11: { month: '《藏历土狗年》四月萨嘎月', day: '廿七', day_des: '药王菩萨圣诞（汉传，农历四月廿八）。' },
        12: { month: '《藏历土狗年》四月萨嘎月', day: '廿八', day_des: '' },
        13: { month: '《藏历土狗年》四月萨嘎月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。' },
        14: { month: '《藏历土狗年》五月作净月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍' },
        15: { month: '《藏历土狗年》五月作净月', day: '初二', day_des: ''},
        16: { month: '《藏历土狗年》五月作净月', day: '初三', day_des: '' },
        17: { month: '《藏历土狗年》五月作净月', day: '初四', day_des: '' },
        18: { month: '《藏历土狗年》五月作净月', day: '初五', day_des: '' },
        19: { month: '《藏历土狗年》五月作净月', day: '初六', day_des: '' },
        20: { month: '《藏历土狗年》五月作净月', day: '初七', day_des: '' },
        21: { month: '《藏历土狗年》五月作净月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。第十七世大宝法王邬金钦列多杰诞辰日（藏历）。夏至' },
        22: { month: '《藏历土狗年》五月作净月', day: '初九', day_des: '' },
        23: { month: '《藏历土狗年》五月作净月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。飞幡日（不适宜挂经幡）。' },
        24: { month: '《藏历土狗年》五月作净月', day: '十一', day_des: '' },
        25: { month: '《藏历土狗年》五月作净月', day: '十二', day_des: '' },
        26: { month: '《藏历土狗年》五月作净月', day: '十三', day_des: '伽蓝菩萨圣诞（汉传，农历五月十三）。' },
        27: { month: '《藏历土狗年》五月作净月', day: '十四', day_des: '' },
        28: { month: '《藏历土狗年》五月作净月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。卓林吉桑节、煨桑节（火供、烟供）。' },
        29: { month: '《藏历土狗年》五月作净月', day: '十六', day_des: '' },
        30: { month: '《藏历土狗年》五月作净月', day: '十七', day_des: '' },
      }, 
      7: {
        1: { month: '《藏历土狗年》五月作净月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        2: { month: '《藏历土狗年》五月作净月', day: '十九', day_des: '' },
        3: { month: '《藏历土狗年》五月作净月', day: '廿十', day_des: '' },
        4: { month: '《藏历土狗年》五月作净月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        5: { month: '《藏历土狗年》五月作净月', day: '廿二', day_des: '飞幡日（不适宜挂经幡）。' },
        6: { month: '《藏历土狗年》五月作净月', day: '廿三', day_des: '' },
        7: { month: '《藏历土狗年》五月作净月', day: '廿四', day_des: '小暑' },
        8: { month: '《藏历土狗年》五月作净月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        9: { month: '《藏历土狗年》五月作净月', day: '廿六', day_des: '' },
        10: { month: '《藏历土狗年》五月作净月', day: '廿七', day_des: '' },
        11: { month: '《藏历土狗年》五月作净月', day: '廿八', day_des: '' },
        12: { month: '《藏历土狗年》五月作净月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        13: { month: '《藏历土狗年》五月作净月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。日偏食（约09:48 -12:13 ）。' },
        14: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。' },
        15: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初三', day_des: '韦驮菩萨圣诞（汉传，农历六月初三）。' },
        16: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初四', day_des: '佛陀初转Fa轮日，功德增长一亿倍。' },
        17: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初五', day_des: '' },
        18: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初六', day_des: '第一世噶玛巴 杜松虔巴 圆寂纪念日（1193）。' },
        19: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初七', day_des: '飞幡日（不适宜挂经幡）。' },
        20: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        21: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初九', day_des: '' },
        22: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。莲师诞辰日' },
        23: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十一', day_des: '大暑' },
        24: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十二', day_des: '' },
        25: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十三', day_des: '' },
        26: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十四', day_des: '' },
        27: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。佛陀入胎日，功德增长一亿倍。' },
        28: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十六', day_des: '月全食（约01:14 - 07:28 ）。' },
        29: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十七', day_des: '' },
        30: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        31: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '十九', day_des: '观世音菩萨成道日（汉传，农历六月十九）。飞幡日（不适宜挂经幡）。' }
      }, 
      8: {
        1: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿十', day_des: '' },
        2: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿十(闰日)', day_des: '' },
        3: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        4: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿二', day_des: '' },
        5: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿三', day_des: '' },
        6: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿五', day_des: ' 一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        7: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿六', day_des: '立秋' },
        8: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿七', day_des: '' },
        9: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿八', day_des: '' },
        10: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        11: { month: '《藏历土狗年》六月明净月转法-轮节、莲师圣诞', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。藏族雪顿节。日偏食（约16:02 - 19:30 ）。' },
        12: { month: '《藏历土狗年》七月具醉月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。' },
        13: { month: '《藏历土狗年》七月具醉月', day: '初二', day_des: '' },
        14: { month: '《藏历土狗年》七月具醉月', day: '初三', day_des: '' },
        15: { month: '《藏历土狗年》七月具醉月', day: '初四', day_des: '飞幡日（不适宜挂经幡）。'},
        16: { month: '《藏历土狗年》七月具醉月', day: '初六', day_des: '' },
        17: { month: '《藏历土狗年》七月具醉月', day: '初七', day_des: '' },
        18: { month: '《藏历土狗年》七月具醉月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        19: { month: '《藏历土狗年》七月具醉月', day: '初九', day_des: '' },
        20: { month: '《藏历土狗年》七月具醉月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        21: { month: '《藏历土狗年》七月具醉月', day: '初十(闰日)', day_des: '' },
        22: { month: '《藏历土狗年》七月具醉月', day: '十一', day_des: '' },
        23: { month: '《藏历土狗年》七月具醉月', day: '十二', day_des: '大势至菩萨圣诞（汉传，农历七月十三）。处暑' },
        24: { month: '《藏历土狗年》七月具醉月', day: '十三', day_des: '' },
        25: { month: '《藏历土狗年》七月具醉月', day: '十四', day_des: '佛欢喜日（即盂兰盆节，汉传，农历七月十五）。' },
        26: { month: '《藏历土狗年》七月具醉月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。' },
        27: { month: '《藏历土狗年》七月具醉月', day: '十六', day_des: '飞幡日（不适宜挂经幡）。' },
        28: { month: '《藏历土狗年》七月具醉月', day: '十七', day_des: '' },
        29: { month: '《藏历土狗年》七月具醉月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        30: { month: '《藏历土狗年》七月具醉月', day: '十九', day_des: '' },
        31: { month: '《藏历土狗年》七月具醉月', day: '廿十', day_des: '' },
      }, 
      9: {
        1: { month: '《藏历土狗年》七月具醉月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        2: { month: '《藏历土狗年》七月具醉月', day: '廿二', day_des: '' },
        3: { month: '《藏历土狗年》七月具醉月', day: '廿三', day_des: '龙树菩萨圣诞（汉传，农历七月廿四）。' },
        4: { month: '《藏历土狗年》七月具醉月', day: '廿四', day_des: '' },
        5: { month: '《藏历土狗年》七月具醉月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        6: { month: '《藏历土狗年》七月具醉月', day: '廿六', day_des: '' },
        7: { month: '《藏历土狗年》七月具醉月', day: '廿七', day_des: '' },
        8: { month: '《藏历土狗年》七月具醉月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。白露' },
        9: { month: '《藏历土狗年》七月具醉月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。地藏王菩萨圣诞（汉传，农历七月三十）。' },
        10: { month: '《藏历土狗年》八月具贤月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。飞幡日（不适宜挂经幡）。第41任萨迦天津法王生日。' },
        11: { month: '《藏历土狗年》八月具贤月', day: '初二', day_des: '' },
        12: { month: '《藏历土狗年》八月具贤月', day: '初三', day_des: '' },
        13: { month: '《藏历土狗年》八月具贤月', day: '初四', day_des: '' },
        14: { month: '《藏历土狗年》八月具贤月', day: '初五', day_des: '' },
        15: { month: '《藏历土狗年》八月具贤月', day: '初六', day_des: '' },
        16: { month: '《藏历土狗年》八月具贤月', day: '初七', day_des: '' },
        17: { month: '《藏历土狗年》八月具贤月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        18: { month: '《藏历土狗年》八月具贤月', day: '初九', day_des: '' },
        19: { month: '《藏历土狗年》八月具贤月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        20: { month: '《藏历土狗年》八月具贤月', day: '十一', day_des: '' },
        21: { month: '《藏历土狗年》八月具贤月', day: '十二', day_des: '' },
        22: { month: '《藏历土狗年》八月具贤月', day: '十三', day_des: '飞幡日（不适宜挂经幡）。' },
        23: { month: '《藏历土狗年》八月具贤月', day: '十四', day_des: '秋分' },
        24: { month: '《藏历土狗年》八月具贤月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。冈波巴大师圆寂日。月光菩萨圣诞（汉传，农历八月十五）。中秋' },
        25: { month: '《藏历土狗年》八月具贤月', day: '十六', day_des: '' },
        26: { month: '《藏历土狗年》八月具贤月', day: '十六(闰日)', day_des: '' },
        27: { month: '《藏历土狗年》八月具贤月', day: '十七', day_des: '' },
        28: { month: '《藏历土狗年》八月具贤月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。' },
        29: { month: '《藏历土狗年》八月具贤月', day: '廿十', day_des: '' },
        30: { month: '《藏历土狗年》八月具贤月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
      }, 
      10: {
        1: { month: '《藏历土狗年》八月具贤月', day: '廿二', day_des: '燃灯佛圣诞（汉传，农历八月廿二）。' },
        2: { month: '《藏历土狗年》八月具贤月', day: '廿三', day_des: '' },
        3: { month: '《藏历土狗年》八月具贤月', day: '廿四', day_des: '' },
        4: { month: '《藏历土狗年》八月具贤月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        5: { month: '《藏历土狗年》八月具贤月', day: '廿六', day_des: '' },
        6: { month: '《藏历土狗年》八月具贤月', day: '廿七', day_des: '' },
        7: { month: '《藏历土狗年》八月具贤月', day: '廿八', day_des: '' },
        8: { month: '《藏历土狗年》八月具贤月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。寒露' },
        9: { month: '《藏历土狗年》八月具贤月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。' },
        10: { month: '《藏历土狗年》九月天降月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。' },
        11: { month: '《藏历土狗年》九月天降月', day: '初三', day_des: '' },
        12: { month: '《藏历土狗年》九月天降月', day: '初四', day_des: '' },
        13: { month: '《藏历土狗年》九月天降月', day: '初五', day_des: '' },
        14: { month: '《藏历土狗年》九月天降月', day: '初五(闰日)', day_des: '' },
        15: { month: '《藏历土狗年》九月天降月', day: '初六', day_des: '' },
        16: { month: '《藏历土狗年》九月天降月', day: '初七', day_des: '' },
        17: { month: '《藏历土狗年》九月天降月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。' },
        18: { month: '《藏历土狗年》九月天降月', day: '初九', day_des: '' },
        19: { month: '《藏历土狗年》九月天降月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。飞幡日（不适宜挂经幡）。' },
        20: { month: '《藏历土狗年》九月天降月', day: '十一', day_des: '' },
        21: { month: '《藏历土狗年》九月天降月', day: '十二', day_des: '' },
        22: { month: '《藏历土狗年》九月天降月', day: '十三', day_des: '' },
        23: { month: '《藏历土狗年》九月天降月', day: '十四', day_des: '霜降' },
        24: { month: '《藏历土狗年》九月天降月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。佛陀应允从天降返回人间，功德增长十亿倍。' },
        25: { month: '《藏历土狗年》九月天降月', day: '十六', day_des: '' },
        26: { month: '《藏历土狗年》九月天降月', day: '十七', day_des: '' },
        27: { month: '《藏历土狗年》九月天降月', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。观世音菩萨出家（汉传，农历九月十九）。' },
        28: { month: '《藏历土狗年》九月天降月', day: '十九', day_des: '' },
        29: { month: '《藏历土狗年》九月天降月', day: '廿十', day_des: '' },
        30: { month: '《藏历土狗年》九月天降月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        31: { month: '《藏历土狗年》九月天降月', day: '廿二', day_des: '天降日（佛陀实际从兜率天返回人间纪念日），功德增长十亿倍。飞幡日（不适宜挂经幡）。法王秋吉林巴晋美巴登仁波切生日。' },
      }, 
      11: {
        1: { month: '《藏历土狗年》九月天降月', day: '廿三', day_des: '' },
        2: { month: '《藏历土狗年》九月天降月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
        3: { month: '《藏历土狗年》九月天降月', day: '廿六', day_des: '' },
        4: { month: '《藏历土狗年》九月天降月', day: '廿七', day_des: '' },
        5: { month: '《藏历土狗年》九月天降月', day: '廿八', day_des: '' },
        6: { month: '《藏历土狗年》九月天降月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        7: { month: '《藏历土狗年》九月天降月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。药师琉璃光佛圣诞（汉传，农历九月三十）。立冬' },
        8: { month: '《藏历土狗年》十月持众月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。' },
        9: { month: '《藏历土狗年》十月持众月', day: '初二', day_des: '' },
        10: { month: '《藏历土狗年》十月持众月', day: '初三', day_des: '' },
        11: { month: '《藏历土狗年》十月持众月', day: '初四', day_des: '' },
        12: { month: '《藏历土狗年》十月持众月', day: '初五', day_des: '大宝金刚仁波切生日。达摩大师圣诞（汉传，农历十月初五）。' },
        13: { month: '《藏历土狗年》十月持众月', day: '初六', day_des: '觉囊派更钦.笃布巴尊者圆纪念日。' },
        14: { month: '《藏历土狗年》十月持众月', day: '初七', day_des: '飞幡日（不适宜挂经幡）。' },
        15: { month: '《藏历土狗年》十月持众月', day: '初八', day_des: '药师佛节日，作何善恶成千倍。'},
        16: { month: '《藏历土狗年》十月持众月', day: '初九', day_des: '' },
        17: { month: '《藏历土狗年》十月持众月', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。莲花生大士入藏。宗喀巴大师诞辰（1357）。阿格旺波尊者诞辰。' },
        18: { month: '《藏历土狗年》十月持众月', day: '初十(闰日)', day_des: '' },
        19: { month: '《藏历土狗年》十月持众月', day: '十一', day_des: '' },
        20: { month: '《藏历土狗年》十月持众月', day: '十二', day_des: '' },
        21: { month: '《藏历土狗年》十月持众月', day: '十三', day_des: '' },
        22: { month: '《藏历土狗年》十月持众月', day: '十四', day_des: '小雪' },
        23: { month: '《藏历土狗年》十月持众月', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。' },
        24: { month: '《藏历土狗年》十月持众月', day: '十六', day_des: '' },
        25: { month: '《藏历土狗年》十月持众月', day: '十七', day_des: '' },
        26: { month: '《藏历土狗年》十月持众月', day: '十九', day_des: '飞幡日（不适宜挂经幡）。' },
        27: { month: '《藏历土狗年》十月持众月', day: '廿十', day_des: '' },
        28: { month: '《藏历土狗年》十月持众月', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        29: { month: '《藏历土狗年》十月持众月', day: '廿二', day_des: '' },
        30: { month: '《藏历土狗年》十月持众月', day: '廿三', day_des: '' },
      }, 
      12: {
        1: { month: '《藏历土狗年》十月持众月', day: '廿四', day_des: '' },
        2: { month: '《藏历土狗年》十月持众月', day: '廿五', day_des: '一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。宗喀巴大师圆寂日（1419），圆根灯节（燃灯节）。' },
        3: { month: '《藏历土狗年》十月持众月', day: '廿六', day_des: '' },
        4: { month: '《藏历土狗年》十月持众月', day: '廿七', day_des: '' },
        5: { month: '《藏历土狗年》十月持众月', day: '廿八', day_des: '' },
        6: { month: '《藏历土狗年》十月持众月', day: '廿九', day_des: '大护法及一切勇父护法会集荟供日、供养龙王日。' },
        7: { month: '《藏历土狗年》十月持众月', day: '三十', day_des: '释迦牟尼佛节日，作何善恶成九亿倍，布萨诵戒日、烟供火供吉祥日。大雪。' },
        8: { month: '《藏历土狗年》十一月庄严月', day: '初一', day_des: '禅定胜王佛节日，作何善恶成百倍。' },
        9: { month: '《藏历土狗年》十一月庄严月 ', day: '初二', day_des: '' },
        10: { month: '《藏历土狗年》十一月庄严月 ', day: '初三', day_des: '' },
        11: { month: '《藏历土狗年》十一月庄严月 ', day: '初四', day_des: '飞幡日（不适宜挂经幡）。' },
        12: { month: '《藏历土狗年》十一月庄严月 ', day: '初五', day_des: '' },
        13: { month: '《藏历土狗年》十一月庄严月 ', day: '初六', day_des: '' },
        14: { month: '《藏历土狗年》十一月庄严月 ', day: '初七', day_des: '十吉全聚日（藏历-初七中午到初八日中午）。' },
        15: { month: '《藏历土狗年》十一月庄严月 ', day: '初八', day_des: '药师佛节日，作何善恶成千倍。'},
        16: { month: '《藏历土狗年》十一月庄严月 ', day: '初九', day_des: '' },
        17: { month: '《藏历土狗年》十一月庄严月 ', day: '初十', day_des: '莲师荟供日，千劫佛节日，作何善恶成十万倍。' },
        18: { month: '《藏历土狗年》十一月庄严月 ', day: '十一', day_des: '' },
        19: { month: '《藏历土狗年》十一月庄严月 ', day: '十二', day_des: '' },
        20: { month: '《藏历土狗年》十一月庄严月 ', day: '十三', day_des: '' },
        21: { month: '《藏历土狗年》十一月庄严月 ', day: '十四', day_des: '' },
        22: { month: '《藏历土狗年》十一月庄严月 ', day: '十五', day_des: '阿弥陀佛节日，作何善恶成百万倍。冬至' },
        23: { month: '《藏历土狗年》十一月庄严月 ', day: '十六', day_des: '飞幡日（不适宜挂经幡）。阿弥陀佛圣诞（汉传，农历十一月十七）。' },
        24: { month: '《藏历土狗年》十一月庄严月 ', day: '十七', day_des: '' },
        25: { month: '《藏历土狗年》十一月庄严月 ', day: '十八', day_des: '观世音菩萨节日，作何善恶成千万倍。日光菩萨圣诞（汉传，农历十一月十九）。' },
        26: { month: '《藏历土狗年》十一月庄严月 ', day: '十九', day_des: '' },
        27: { month: '《藏历土狗年》十一月庄严月 ', day: '廿十', day_des: '' },
        28: { month: '《藏历土狗年》十一月庄严月 ', day: '廿一', day_des: '地藏王菩萨节日，作何善恶成亿倍。' },
        29: { month: '《藏历土狗年》十一月庄严月 ', day: '廿三', day_des: '' },
        30: { month: '《藏历土狗年》十一月庄严月 ', day: '廿四', day_des: '' },
        31: {month: '《藏历土狗年》十一月庄严月 ', day: '廿五', day_des: ' 一切女性本尊及空行母会集荟供日、供养龙王日、烟供火供吉祥日。' },
      }
    },
  },

  dateClick: function (e) {
    var eId = e.currentTarget.id;
    if (eId == '') {
      return false;
    } else {
      var MonArray = this.data.MonthDayArray;
      var data = this.data;
      for (var i = 0; i < MonArray.length; i++) {
        for (var j = 0; j < MonArray[i].length; j++) {
          if (typeof (MonArray[i][j]) == 'string') {
            continue;
          }
          if (MonArray[i][j].num == eId) {
            MonArray[i][j].isShowDayInfo = !MonArray[i][j].isShowDayInfo;
          }
        }
      }
    }

    for (var i = 0; i < MonArray.length; i++) {
      for (var j = 0; j < MonArray[i].length; j++) {
        if (typeof (MonArray[i][j]) == 'string' || MonArray[i][j].num == eId) {
          continue;
        }
        MonArray[i][j].isShowDayInfo = false;
      }
    }

    this.setData({
      MonthDayArray: MonArray,
      toYear: data.yearNum,
      toMonth: data.monthNum,
      toDate: eId,
      fromToday: d.getFromTodayDays(eId, data.monthNum - 1, data.yearNum),
      nongliDetail: CN_Date(data.yearNum, data.monthNum, eId),
      foliDetail: (data.yearNum + 544) + '年' + data.monthNum + '月' + eId + '日'
    })
  },

  monthTouch: function (e) {
    var beginX = e.target.offsetLeft;
    var endX = e.changedTouches[0].clientX;
    console.log(beginX - endX);
    if (beginX - endX > 100) {
      this.nextMonth_Fn();
    }
    else if (beginX - endX < -100) {
      this.lastMonth_Fn();
    }
  },

  nextMonth_Fn: function () {
    var n = this.data.monthNum;
    var y = this.data.yearNum;
    console.log(n);
    if (n == 12) {
      this.setData({
        monthNum: 1,
        yearNum: y + 1,
      });
    }
    else {
      this.setData({
        monthNum: n + 1,
      });
    }
    this.calcMonthDayArray();
  },

  lastMonth_Fn: function () {
    var n = this.data.monthNum;
    var y = this.data.yearNum;
    console.log(n);
    if (n == 1) {
      this.setData({
        monthNum: 12,
        yearNum: y - 1,
      });
    }
    else {
      this.setData({
        monthNum: n - 1,
      });
    }
    this.calcMonthDayArray();
  },

  onShow: function () {
    console.log('onShow');
    this.calcMonthDayArray();
  },

  calcMonthDayArray: function () {
    var data = this.data;
    var nSpace = d.getMonthFirstDay(data.monthNum - 1, data.yearNum);
    var totalDate = d.getMonthTotalDate(data.monthNum, data.yearNum);
    var dateArray = [];
    var trArray = [];
    for (var i = 1; ; i++) {
      if (i <= nSpace) {
        trArray.push('');
      }
      else if (i <= totalDate + nSpace) {
        var nl = CN_Date(data.yearNum, data.monthNum, i - nSpace);
        trArray.push({
          num: i - nSpace,
          isShowDayInfo: false,
          nongli: nl.slice(nl.length - 2),
          nongliInfo: CN_Date(data.yearNum, data.monthNum, i - nSpace),
          isToday: (data.monthNum == t.getMonth() + 1 && i - nSpace == t.getDate() && data.yearNum == t.getFullYear()) ? true : false
        });
      }
      else {
        var l = trArray.length;
        for (var j = 0; j + l < 7; j++) {
          trArray.push('');
        }
        dateArray.push(trArray);
        break;
      }
      if (trArray.length == 7) {
        dateArray.push(trArray);
        trArray = [];
      }
    }

    //如果不是当年当月，自动选中1号
    var notToday = (data.monthNum != t.getMonth() + 1 || data.yearNum != t.getFullYear());
    if (notToday) {
      for (var i = 0; i < dateArray[0].length; i++) {
        if (dateArray[0][i].num == 1) {
          dateArray[0][i].isShowDayInfo = true;
        }
      }
    }

    this.setData({
      MonthDayArray: dateArray,
      toYear: notToday ? this.data.yearNum : t.getFullYear(),
      toMonth: notToday ? this.data.monthNum : t.getMonth() + 1,
      toDate: notToday ? 1 : t.getDate(),
      fromToday: notToday ? d.getFromTodayDays(1, data.monthNum - 1, data.yearNum) : '今天',
      nongliDetail: notToday ? CN_Date(data.yearNum, data.monthNum, 1) : CN_Date(t.getFullYear(), t.getMonth() + 1, t.getDate()),
      foliDetail: notToday ? (data.yearNum + 544) + '年' + data.monthNum + '月' + 1 + '日' : (t.getFullYear() + 544) + '年' + (t.getMonth() + 1) + '月' + (t.getDate()) + '日'
    })
  }

})